package com.neuedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neuedu.mapper.ItemProtocolMapper;
import com.neuedu.pojo.ItemProtocol;
import com.neuedu.service.IItemProtocolService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author han
 * @since 2020-09-23
 */
@Service
public class ItemProtocolServiceImpl extends ServiceImpl<ItemProtocolMapper, ItemProtocol> implements IItemProtocolService {

    @Override
    public ItemProtocol getByItemId(Integer itemId) {
        QueryWrapper<ItemProtocol> wrapper = new QueryWrapper<>();
        wrapper.eq("item_id",itemId);
        return this.getOne(wrapper);
    }
}
